package com.gagakuai.demo.condit;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

/*
 * @program: settement
 * @description:
 * @author: houhong
 * @create: 2022-11-12 13:58
 */
@Configuration
public class BeanConfig2 {
   // @Conditional(OnMissingBeanCondition.class)
    @Bean("service4")
    public IService service3() {
        return new Service2();
    }
}